﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TCDL
{
    public partial class frmAdmin : Form
    {
        frmDangKyKH frmDKKH = new frmDangKyKH();
        frmDangKyNV frmDKNV = new frmDangKyNV();
        frmQuanLyGa frmQLG = new frmQuanLyGa();
        frmQuanLyTau frmQLT = new frmQuanLyTau();
        frmQLyLenLich frmLL = new frmQLyLenLich();
        frmQLyLichTrinh frmLT = new frmQLyLichTrinh();

        public frmAdmin()
        {
            InitializeComponent();
        }

        private void btnKhachHang_Click(object sender, EventArgs e)
        {
            frmDKKH.Show();
        }

        private void btnNhanVien_Click(object sender, EventArgs e)
        {
            frmDKNV.Show();
        }

        private void btnGa_Click(object sender, EventArgs e)
        {
            frmQLG.Show();
        }

        private void btnTau_Click(object sender, EventArgs e)
        {
            frmQLT.Show();
        }

        private void btnLichVanChuyen_Click(object sender, EventArgs e)
        {
            try
            {
                frmLL.Show();
            }
            catch (System.Exception ex)
            {
                frmLL = new frmQLyLenLich();
                frmLL.Show();
            }
        }

        private void btnLichTrinh_Click(object sender, EventArgs e)
        {
            frmLT.Show();
        }

        private void Admin_Load(object sender, EventArgs e)
        {

        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            this.Close();
            frmDKKH.Close();
            frmDKNV.Close();
            frmQLG.Close();
            frmQLT.Close();
            frmLL.Close();
            frmLT.Close();
        }
    }
}
